<?php

namespace DesignNew\Decorator;

require('../vendor/autoload.php');

class DeClient
{
    public function __construct()
    {
        $this->run();
    }

    public function run()
    {
       $someCoffee = new SimpleCoffee();
       echo $someCoffee->getCost();
       echo $someCoffee->getDescription();

       $someCoffee = new MilkCoffee($someCoffee);
       echo $someCoffee->getCost();
       echo $someCoffee->getDescription();

       $someCoffee = new WhipCoffee($someCoffee);
       echo $someCoffee->getCost();
       echo $someCoffee->getDescription();

       $someCoffee = new VanillaCoffee($someCoffee);
       echo $someCoffee->getCost();
       echo $someCoffee->getDescription();
    }
}

$client = new DeClient();